package com.crop.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 生产记录表
 * </p>
 *
 * @author 作者
 * @since 2025-02-04
 */
@Getter
@Setter
@TableName("product_record")
@ApiModel(value = "ProductRecord对象", description = "生产记录表")
public class ProductRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("产品ID")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty("温度")
    @TableField("temperature")
    private BigDecimal temperature;

    @ApiModelProperty("水分")
    @TableField("moisture")
    private String moisture;

    @ApiModelProperty("生长情况")
    @TableField("growth_status")
    private String growthStatus;

    @ApiModelProperty("光照情况")
    @TableField("light_condition")
    private String lightCondition;

    @ApiModelProperty("备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty("生长图片")
    @TableField("image_url")
    private String imageUrl;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("deleted")
    private Boolean deleted;


}
